set(TARGET weik_dip_color_histgram)

message(STATUS "编译可执行文件 " [${TARGET}])

# 所有头文件
file(GLOB_RECURSE HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}  *.hpp *.h *.inl)
# 所有源文件
file(GLOB_RECURSE SOURCES LIST_DIRECTORIES true *.cpp *.cc *.c)

find_package(X11)
if(X11_FOUND)
    include_directories(${X11_INCLUDE_DIR})
    link_directories(${X11_LIBRARIES})
endif()

# 二进制
add_executable(${TARGET} ${SOURCES})

# 设置 库文件 版本号
set_target_properties(${TARGET} PROPERTIES VERSION ${AppVer} SOVERSION ${AppVerMajor})

install(TARGETS ${TARGET})